//
// Created by hentai on 2025/8/28.
//

#include <QSplitter>

#ifndef TKMQTT_RESPONSIVESPLITTER_H
#define TKMQTT_RESPONSIVESPLITTER_H


class ResponsiveSplitter : public QSplitter {
    Q_OBJECT

public:
    explicit ResponsiveSplitter(Qt::Orientation, QWidget *parent = nullptr);

protected:
    void resizeEvent(QResizeEvent *event) override;

private:
    void updateSplitRatio();

    QWidget *leftWidget;
    QWidget *rightWidget;
};

#endif //TKMQTT_RESPONSIVESPLITTER_H
